package com.inspur.cloud.entity.dataspace.special;

import java.util.List;

public class RangerEntity implements java.io.Serializable {

    /**
     * ranger类型，简写hdfs或者yarn之类
     */
    private String type;
    /**
     * ranger资源，简写资源，如hdfs的路径, hbase的表|列族|列
     */
    private String resource;

    private boolean isEnabled;
    private boolean isAuditEnabled;

    /**
     * 策略名称
     */
    private String policyName;
    /**
     * 策略描述
     */
    private String description;

    /**
     * 策略资源集合
     * 如hdfs，它的资源中主键key是path
     * path中又包括：value值，isExcludes值，isRecursive值
     * value值就是hfds的路径
     */
    private List<RangerResource> rangerResourceList;
    /**
     * 策略的权限项集合
     * 如hfds，它的权限项包括：access权限，users用户，groups组，conditions，delegateAdmin
     * access权限包括读写可执行。
     */
    private List<RangerPolicyItem> rangerPolicyItemList;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public boolean isEnabled() {
        return isEnabled;
    }

    public void setEnabled(boolean enabled) {
        isEnabled = enabled;
    }

    public boolean isAuditEnabled() {
        return isAuditEnabled;
    }

    public void setAuditEnabled(boolean auditEnabled) {
        isAuditEnabled = auditEnabled;
    }

    public String getPolicyName() {
        return policyName;
    }

    public void setPolicyName(String policyName) {
        this.policyName = policyName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<RangerResource> getRangerResourceList() {
        return rangerResourceList;
    }

    public void setRangerResourceList(List<RangerResource> rangerResourceList) {
        this.rangerResourceList = rangerResourceList;
    }

    public List<RangerPolicyItem> getRangerPolicyItemList() {
        return rangerPolicyItemList;
    }

    public void setRangerPolicyItemList(List<RangerPolicyItem> rangerPolicyItemList) {
        this.rangerPolicyItemList = rangerPolicyItemList;
    }
}
